package com.shiroha.common.annotation;

import com.shiroha.common.bean.JacksonConfig;
import com.shiroha.common.bean.RedisConfig;
import org.springframework.context.annotation.Import;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 启用redis序列化
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Import({RedisConfig.class, JacksonConfig.class})
public @interface EnableRedisSerialization {
}
